<template>
  <FormItem :label="label" :prop="prop" :single="single">
    <PaasSelect
      :params="params"
      :disabled="see || disabled"
      :multiple="multiple"
      :value="value"
      @change="change"
      @input="input"
    ></PaasSelect>
  </FormItem>
</template>
<script>
import PaasSelect from "@/components/PaasSelect";

export default {
  components: {
    PaasSelect
  },
  props: {
    multiple: { default: false },
    single: { default: false },
    value: "",
    params: "",
    label: "",
    prop: "",
    disabled: { default: false }
  },
  computed: {
    see() {
      return this.$store.state.forms.see;
    }
  },
  methods: {
    input(data) {
      this.$emit("input", data);
    },
    change(data) {
      this.$emit("change", data);
    }
  }
};
</script>